package com.cloudbroker.bcs.platform.ltb.configure.define.element.formfield;

import com.cloudbroker.bcs.platform.ltb.configure.define.element.FormField;
import com.cloudbroker.bcs.platform.ltb.configure.define.element.formfield.restriction.BasicValidator;

public class InputFormField extends FormField<InputFormField, BasicValidator> {
    
    @Override
    public String getType() {
        String type = property.getType() == null ? "text" : property.getType().toString();
        return DISPLAY_HIDE.equals(property.getDisplay()) ? "hidden" : type;
    }
    
    @Override
    protected String getRelativeVmPath() {
        return "formfield/input.vm";
    }
    
    @Override
    public String toString() {
        return "InputFormField [display=" + display + ", fragments=" + fragments + ", id=" + id + ", name=" + name
                + ", label=" + label + ", define=" + define + "]";
    }
    
}
